Skip to content

Spec pages: as released / corrected <date> under the title, permalinks in the footer - #97

Merged
jan-glx merged 4 commits into
sitefrom
jangleixner/site-source-footer
Nov 16, 2026
Merged

jan-glx merged 4 commits into
sitefrom
jangleixner/site-source-footer

Conversation

@jan-glx

@jan-glx jan-glx commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Since the release, merged corrections change the published pages of a version (e.g. storage format 0.4, data model 1.0) in place, with nothing on the page saying so. This adds:

Under the title of every specification page, one short muted line saying whether the text is as released or corrected since, the date linking to the changes since the release:

Storage format 0.4, corrected 16 Nov 2026 · Data model 1.0, corrected 16 Nov 2026

Storage format 0.3, as released · Data model 1.0, corrected 16 Nov 2026

In the footer, for citing the text exactly, the permalinks:

Data model 1.0 text: commit d6f338b of 2026-11-16 (branch data-model); released as data-model-1.0, changes since.

Details:

  • build.py resolves commit, date and release tag (storage-format-<v> / data-model-<v>) of the content and of the data model text of each build and passes them as SPEC_SOURCE. In conf.py, a source-read hook adds the status line as a spec-status container under the title (above the byline of _ext/spec_authors.py), and _templates/spec-source.html renders the footer lines via the theme's footer_content_items. storage-format.md includes the data model text, so it names both.
  • This also makes visible that older storage format versions (0.1–0.3) show their storage format text as released but the current data model text (the site overlays the data-model branch on every version).
  • A version without a tag yet shows "draft of " / "not released yet". Previews from a checkout (--source, --data-model-source, the PR preview's .content) show that checkout's commit (and "with local changes" for a dirty working copy); a directory that is not a checkout of its own gets nothing. Non-spec pages (index, contributing, RFCs, implementations) get nothing.
  • contributing.md (Versions and releases) mentions both.

Checked: full strict uv run build.py builds all six builds without warnings; rendered and checked in a browser on 0.4, 0.3 and the data model version history; prek run --all-files passes. CI already checks out with fetch-depth: 0, so the tags are available.

… spec page

build.py resolves, for the content and the data model text of each build, the commit it comes
from, its date and the release tag of its version (storage-format-<v>, data-model-<v>), and passes
them to Sphinx (SPEC_SOURCE). The content footer of every specification page then says where its
text comes from: the file at that commit, the file as released, and a compare link with the changes
since the release; a page built from its release tag says "as released". The storage format page,
which includes the data model text, names both. Previews from a checkout show its commit (and
uncommitted changes); a directory that is no checkout gets no footer line.
… footer

The line moves from the content footer to under the byline (or the title, where a page has none),
where readers see whether the text is as released or corrected since: a source-read hook in conf.py
adds it as a spec-source container after the one of _ext/spec_authors.py.
@jan-glx jan-glx changed the title Footer: commit, release tag and changes since the release of each spec page Spec pages: commit, release tag and changes since the release, under the authors Nov 16, 2026
@jan-glx jan-glx changed the title Spec pages: commit, release tag and changes since the release, under the authors Spec pages: commit, release tag and changes since the release, under the title Nov 16, 2026
Under the title: "Storage format 0.4, corrected 16 Nov 2026 · Data model 1.0, corrected 16 Nov
2026" (or "as released"), the date linking to the changes since the release. The commit, branch
and release tag of each text, for citing it exactly, go back into the content footer, as plain text.
@jan-glx jan-glx changed the title Spec pages: commit, release tag and changes since the release, under the title Spec pages: as released / corrected <date> under the title, permalinks in the footer Nov 16, 2026
@jan-glx
jan-glx marked this pull request as ready for review November 16, 2026 16:09
@jan-glx
jan-glx merged commit 35d9adf into site Nov 16, 2026
5 checks passed
@jan-glx
jan-glx deleted the jangleixner/site-source-footer branch November 16, 2026 16:09

This branch was successfully deployed

1 active deployment
preview — d83e65b8 Deployed Nov 16, 2026 by jan-glx via Deploy to Cloudflare Pages #122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant